﻿#ifndef CMDLINECHARTDIALOGTRANSFERFUNCTION_H
#define CMDLINECHARTDIALOGTRANSFERFUNCTION_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartDialogTransferFunction : public CommandManager::CommandBase
    {
        Q_OBJECT

        public:
            CmdLineChartDialogTransferFunction();
            ~CmdLineChartDialogTransferFunction();

            bool execute() override;
            void undo() override;
            void redo() override;
            void setData(QString graphName, QString calibrationGraphName, QString type) {
                 m_graphName = graphName; 
                 m_calibrationGraphName = calibrationGraphName; 
                 m_type = type; 
            }

        private:
            QString m_graphName{};
            QString m_calibrationGraphName{};
            QString m_type{};
    };

} // namespace PostCommand

#endif
